//
//package com.rt.schedulebase.service.impl;
//import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
//import com.baomidou.mybatisplus.core.conditions.Wrapper;
//import java.util.Map;
//import java.util.HashMap;
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//import java.util.List;
//import com.rt.schedulebase.dto.DictPatientLockDto;
//import java.io.Serializable;
//import org.springframework.stereotype.Service;
//import com.rt.schedulebase.service.IDictPatientLockService;
//import com.rt.schedulebase.entity.DictPatientLock;
//import com.rt.schedulebase.mapper.DictPatientLockMapper;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//@Service
//public class DictPatientLockServiceImpl extends ServiceImpl<DictPatientLockMapper, DictPatientLock> implements IDictPatientLockService
//{
//@Override
//    public boolean insertSelective(final DictPatientLock dictPatientLock) {
//        return this.retBool(Integer.valueOf(((DictPatientLockMapper)this.baseMapper).insert(dictPatientLock)));
//    }
//
//@Override
//    public boolean deleteByPrimaryKey(final String key) {
//        return this.retBool(Integer.valueOf(((DictPatientLockMapper)this.baseMapper).deleteById((Serializable)key)));
//    }
//
//@Override
//    public boolean updateByPrimaryKeySelective(final DictPatientLock dictPatientLock) {
//        return this.retBool(Integer.valueOf(((DictPatientLockMapper)this.baseMapper).updateById(dictPatientLock)));
//    }
//
//@Override
//    public DictPatientLock selectByPrimaryKey(final String key) {
//        return (DictPatientLock)((DictPatientLockMapper)this.baseMapper).selectById((Serializable)key);
//    }
//
//@Override
//    public List<DictPatientLock> getList(final DictPatientLockDto dto) {
//        final QueryWrapper<DictPatientLock> qw = (QueryWrapper<DictPatientLock>)new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("IC_CARD", dto.getIcCard());
//        map.put("IDENTITY_CARD", dto.getIdentityCard());
//        map.put("LOCK_STATUS", dto.getLockStatus());
//        map.put("LOCK_DATE", dto.getLockDate());
//        map.put("PATIENT_NAME", dto.getPatientName());
//        qw.allEq((Map)map, false);
//        final List<DictPatientLock> list = (List<DictPatientLock>)((DictPatientLockMapper)this.baseMapper).selectList((Wrapper)qw);
//        return list;
//    }
//
//@Override
//    public List<DictPatientLock> getListAll() {
//        return (List<DictPatientLock>)((DictPatientLockMapper)this.baseMapper).selectList((Wrapper)null);
//    }
//
//@Override
//    public boolean delete(final DictPatientLock dictPatientLock) {
//        final UpdateWrapper<DictPatientLock> uw = (UpdateWrapper<DictPatientLock>)new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("IC_CARD", dictPatientLock.getIcCard());
//        map.put("IDENTITY_CARD", dictPatientLock.getIdentityCard());
//        map.put("LOCK_STATUS", dictPatientLock.getLockStatus());
//        uw.allEq((Map)map, false);
//        return this.retBool(Integer.valueOf(((DictPatientLockMapper)this.baseMapper).delete((Wrapper)uw)));
//    }
//
//@Override
//    public boolean update(final DictPatientLock dictPatientLock) {
//        final UpdateWrapper<DictPatientLock> uw = (UpdateWrapper<DictPatientLock>)new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        uw.allEq((Map)map, false);
//        return this.retBool(Integer.valueOf(((DictPatientLockMapper)this.baseMapper).update(dictPatientLock, (Wrapper)uw)));
//    }
//
//@Override
//    public DictPatientLock getInfo(final DictPatientLockDto dto) {
//        final QueryWrapper<DictPatientLock> qw = (QueryWrapper<DictPatientLock>)new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("IC_CARD", dto.getIcCard());
//        map.put("IDENTITY_CARD", dto.getIdentityCard());
//        map.put("LOCK_STATUS", dto.getLockStatus());
//        qw.allEq((Map)map, false);
//        return (DictPatientLock)((DictPatientLockMapper)this.baseMapper).selectOne((Wrapper)qw);
//    }
//}
